//
//  WRSFaceView.h
//  WRSFaceLibOC_Example
//
//  Created by 温日盛 on 2025/10/5.
//  Copyright © 2025 wrs. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <WRSFace/WRSRecognizeEntity.h>

NS_ASSUME_NONNULL_BEGIN

@interface WRSFaceView : UIView


//@property (assign, nonatomic) BOOL doLiveness;
@property (assign, nonatomic) BOOL doRecognize; // 是否进行数据库搜索对别

// 是否识别人脸属性
@property (assign, nonatomic) BOOL rgbLiveness;
@property (assign, nonatomic) BOOL quality;
@property (assign, nonatomic) BOOL faceMask;
@property (assign, nonatomic) BOOL faceInteractionState;
@property (assign, nonatomic) BOOL faceInteractionsActions;
@property (assign, nonatomic) BOOL faceAttribute;
@property (assign, nonatomic) BOOL faceEmotion;

@property (nonatomic, copy, nullable) void (^registerCallback)(int64_t faceId, NSString *, UIImage *, BOOL); // 注册回调
@property (nonatomic, copy, nullable) void (^recognizeCallback)(WRSRecognizeEntity *, UIImage *); // 识别对比人脸回调， 没有识别到人脸也会回调
@property (nonatomic, copy, nullable) void (^curImageCallback)(int, UIImage *); // 当前图片回调，一般用来获取保存当前视频画面


- (void)switchCamera;
- (void)startCameraCapture;
- (void)stopCameraCapture;
- (void)startCameraCaptureWithCameraOrient:(AVCaptureDevicePosition)orient;
- (void)registerPerson:(NSString *)name;

- (void)releaseResource;

@end

NS_ASSUME_NONNULL_END
